<?php
include("cabecalho.php");
?>


<br><br>
<div class="container">
    <div class="row">
        <div class="col-md-11 text-left">
            <div class="navbar navbar-default">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand">Cadastro de Usuário</a>
                </div>
                <div class="collapse navbar-collapse navbar-ex1-collapse">
                    <ul class="nav navbar-nav navbar-left">
                        <li><a href="usuario.php">Menu Usuário</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="container" style="height: 490px;overflow-y: scroll">
    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">
            <form role="form" action="usuarioAddOk.php" method="POST">
                <div class="form-group">
                    <label>Nome</label>
                    <input class="form-control" name="nomeUsuario" autofocus required placeholder="Digite seu nome" maxlength="150" type="text">
                </div>
                <div class="form-group">
                    <label>Senha</label>
                    <input class="form-control" placeholder="Sua senha" type="text" name="senhaUsuario" maxlength="100" required>
                </div>
                <div class="form-group">
                    <label>E-mail</label>
                    <input class="form-control" placeholder="Seu email" type="email" name="emailUsuario" maxlength="100" required >
                </div>
                <div class="form-group">
                    <label>CPF</label>
                    <input class="form-control" placeholder="CPF" type="text" name="cpfUsuario" maxlength="20" required >
                </div>
                <div class="form-group">
                    <label>Endereço</label>
                    <input class="form-control" placeholder="Endereço" name="enderecoUsuario" type="text" maxlength="100" required >
                </div>
                <div class="form-group">
                    <label>Telefone</label>
                    <input class="form-control" placeholder="telefone" name="telefoneUsuario" type="tel" maxlength="100" required >
                </div>
                <div class="form-group">
                    <label>Tipo</label>
                    <select class="form-control" name="tipo">
                        <?php
                        $objCat = new Categoria();
                        $objCat->categoriaTipo();
                        ?>
                    </select>
                </div>
                <button type="submit" class="btn btn-success">Gravar</button>
                <button type="reset" class="btn btn-info">Limpar</button>
            </form>
        </div>
    </div>
</div>
<?php
include("rodape.php");
?>